package com.bye.xiaomi_mall.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 td_shopping_cart
 * 
 * @author ruoyi
 * @date 2025-03-15
 */
public class TdShoppingCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private Long userId;

    private String miUserToken;
    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;
    @Excel(name = "商品")
    TdGoods good;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long goodsNum;
    @Excel(name = "商品规格")
    private String goodsSp;

    private List<String> spNameList;
    private List<String> spValueList;
    private List<String> spMoneyList;

    public List<String> getSpMoneyList() {
        return spMoneyList;
    }

    public void setSpMoneyList(List<String> spMoneyList) {
        this.spMoneyList = spMoneyList;
    }

    /** 插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertTime;

    /** 状态 0 不在购物车  1 在购物车 */
    @Excel(name = "状态 0 不在购物车  1 在购物车")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public void setGoodsNum(Long goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public Long getGoodsNum() 
    {
        return goodsNum;
    }

    public void setInsertTime(Date insertTime) 
    {
        this.insertTime = insertTime;
    }

    public Date getInsertTime() 
    {
        return insertTime;
    }

    public TdGoods getGood() {
        return good;
    }

    public void setGood(TdGoods good) {
        this.good = good;
    }

    public List<String> getSpNameList() {
        return spNameList;
    }

    public void setSpNameList(List<String> spNameList) {
        this.spNameList = spNameList;
    }

    public List<String> getSpValueList() {
        return spValueList;
    }

    public void setSpValueList(List<String> spValueList) {
        this.spValueList = spValueList;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getGoodsSp() {
        return goodsSp;
    }

    public void setGoodsSp(String goodsSp) {
        this.goodsSp = goodsSp;
    }

    public String getMiUserToken() {
        return miUserToken;
    }

    public void setMiUserToken(String miUserToken) {
        this.miUserToken = miUserToken;
    }

    @Override
    public String toString() {
        return "TdShoppingCart{" +
                "id=" + id +
                ", userId=" + userId +
                ", miUserToken='" + miUserToken + '\'' +
                ", goodsId=" + goodsId +
                ", good=" + good +
                ", goodsNum=" + goodsNum +
                ", goodsSp='" + goodsSp + '\'' +
                ", spNameList=" + spNameList +
                ", spValueList=" + spValueList +
                ", insertTime=" + insertTime +
                ", status='" + status + '\'' +
                '}';
    }
}
